package com.jzg.jcptadmin.data.vo;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by jzg on 2016/1/6.
 */
public class SuccessData implements Parcelable{

    /**
     * status : 100
     * msg : 任务登记成功
     */

    private int status;
    private String msg;
    private String qiangdan;

    public String getQiangdan() {
        return qiangdan;
    }

    public void setQiangdan(String qiangdan) {
        this.qiangdan = qiangdan;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }

    /***
     * status==100 返回true
     * @return
     */
    public boolean isSucceed(){
        return status==100;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.status);
        dest.writeString(this.msg);
        dest.writeString(this.qiangdan);
    }

    public SuccessData() {
    }

    protected SuccessData(Parcel in) {
        this.status = in.readInt();
        this.msg = in.readString();
        this.qiangdan = in.readString();
    }

    public static final Creator<SuccessData> CREATOR = new Creator<SuccessData>() {
        public SuccessData createFromParcel(Parcel source) {
            return new SuccessData(source);
        }

        public SuccessData[] newArray(int size) {
            return new SuccessData[size];
        }
    };
}
